package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 蔬菜货损
 * @Author: jeecg-boot
 * @Date:   2022-06-29
 * @Version: V1.0
 */
@Data
@TableName("flower_lose")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="flower_lose对象", description="蔬菜货损")
public class FlowerLose implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**产品*/
	@Excel(name = "产品", width = 15)
//    @Dict(dicCode = "planting_variety")
    @ApiModelProperty(value = "产品")
    private String variety;
	/**品种编码*/
	@Excel(name = "品种编码", width = 15)
    @ApiModelProperty(value = "品种编码")
    private String varietyCode;
	/**打包规格*/
	@Excel(name = "打包规格", width = 15)
//    @Dict(dicCode = "planting_packing_specifications")
    @ApiModelProperty(value = "打包规格")
    private String packingSpecifications;
	/**等级*/
	@Excel(name = "等级", width = 15)
//    @Dict(dicCode = "planting_flower_level")
    @ApiModelProperty(value = "等级")
    private String classes;
	/**花杆长度*/
	@Excel(name = "花杆长度", width = 15)
//    @Dict(dicCode = "planting_flower_pole")
    @ApiModelProperty(value = "花杆长度")
    private String flowerPoleLength;
	/**库损数量*/
	@Excel(name = "库损数量", width = 15)
    @ApiModelProperty(value = "库损数量")
    private Integer loseNum;
	/**库损类型：0 直接库损，1 预售货损*/
	@Excel(name = "库损类型：0 直接库损，1 预售货损", width = 15)
    @Dict(dicCode = "lose_type")
    @ApiModelProperty(value = "库损类型：0 直接库损，1 预售货损")
    private String loseType;
    /**采收分类(鲜切花，种苗)*/
    @Excel(name = "采收分类(鲜切花，种苗)", width = 15)
    @Dict(dicCode = "planting_classify")
    @ApiModelProperty(value = "采收分类(鲜切花，种苗)")
    private String classify;

    @Excel(name = "0 等待确认，1 已经确认", width = 15)
    @ApiModelProperty(value = "-2删除 0 等待确认，1 已经确认")
    private Integer state;

    @Excel(name = "库房", width = 15)
    @ApiModelProperty(value = "库房")
    @Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    private String storehouse;
}
